grammar {

start = element foo { dateWithTimezone }

dateWithTimezone= xsd:date {pattern = ".+[:Z].*"} 
dateWithoutTimezone= xsd:date {pattern = "[^:Z]"} 

}
